package com.ruoyi.system.domain;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;


/**
 * 出售记录对象 cs_sales_record
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Data
public class CsSalesRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long userId;

    @Excel(name = "用户账户")
    private Long account;

    /**
     * 物品名称
     */
    @Excel(name = "物品名称")
    private String name;

    @Excel(name = "market_hash_name")
    private String marketHashName;

    /**
     * 出售价格
     */
    @Excel(name = "出售价格")
    private Long sellPrice;

    /**
     * 出售时单个成本均价
     */
    @Excel(name = "出售时单个成本均价")
    private Long sellCostPrice;

    /**
     * 出售数量
     */
    @Excel(name = "出售数量")
    private Long quantity;

    /**
     * 出售平台
     */
    @Excel(name = "出售平台")
    private String platform;

    /**
     * 总盈利
     */
    @Excel(name = "总盈利")
    private Long totalProfit;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

}
